﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace MediSIIM.BizComponent.ZheJiangSYKT
{
    /// <summary>
    /// 医保交易参数对象
    /// </summary>
    public class ZheJiangSYKTTradeParam
    {
        public DataTable TableView
        {
            get
            {
                var table = new DataTable("TableView");
                table.Columns.Add("Id");
                table.Columns.Add("Value");
                foreach (var item in InData.Split('~'))
                {
                    table.Rows.Add(table.Rows.Count + 1, item);
                }
                return table;
            }
        }
        /// <summary>
        /// 省直医保:交易流水号
        /// </summary>
        public double TradeNo;
        public string InData;
        public int TradeTypeNo;
        public string OutData;
        public ZheJiangSYKTTradeParam()
        {

        }

        public ZheJiangSYKTTradeParam(int nTradeTypeID, string sInData)
        {
            this.InData = sInData;
            this.TradeTypeNo = nTradeTypeID;
            this.OutData = string.Empty.PadRight(3000);
        }
    }
}
